   #include "animation.h"
#include "draw.h"
  #include "init.h"
   #include "input.h"
    #include "main.h"
      #include "map.h"
         #include "player.h"

    int main()
   {
    unsigned int frameLimit = SDL_GetTicks() + 16;
    int go;


        init("Captivity");

     initializePlayer();


          loadGame();


         atexit(cleanup);

    go = 1;


    while (go == 1)
    {


        getInput();


        updatePlayer();

        draw();

        delay(frameLimit);
        frameLimit = SDL_GetTicks() + 16;

    }

    exit(0);

    }
